package com.yupi.lxrapiclientsdk;

import com.yupi.lxrapiclientsdk.client.YuApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: LiangXinRui
 * @Date: 2023/07/13/10:18
 * @Description:
 */
@Configuration
@ConfigurationProperties("yuapi.client")
@Data
@ComponentScan//包扫描器
public class LxrApiClientConfig {
    private String accessKey;

    private String secretKey;

    @Bean
    public YuApiClient yuApiClient() {
        return new YuApiClient(accessKey, secretKey);
    }
}
